import type { FormInstance, FormRules } from 'element-plus'

export interface routerTypes {
    path?: string,
    name?: string,
    children?: Array<routerTypes>,
    component?: any,
    redirect?: string,
    meta?: any
}


export interface spanTypes {
    left: string,
    top: string,
    transform: string,
    animationDelay: string,
    background: string,
}

export interface userInfoFace {
    id?: string,
    username?: string,
    phone?: string | any,
    password?: string | undefined,
    dbpass?: string | undefined,
    avatar?: string,
    nickname?: string,
    email?: string,
    age?: number,
    sex?: number,
    time?: Date,
    role?: number,
    account?: string | any
    captcha?: string
}

export type formRefType = FormInstance | undefined

export type maxType = string | number | boolean

export interface RoleFace {
    "id"?: Number,
    "value"?: Number,
    "label"?: String,
    "color"?: String,
    "_id"?: String,
}

export interface AnnoFace {
    "id"?: Number,
    "value"?: Number,
    "label"?: String,
    "color"?: String,
    "_id"?: String,
}